package com.ybkj.daijia.server.mapper;

import com.ybkj.daijia.server.model.DjInsurance;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface DjInsuranceMapper {

    /**
     * 保存司机充值记录
     *
     * @param record
     * @return
     */
    int insertRecord(DjInsurance record);

    /**
     * 根据主键查询司机充值记录
     *
     * @param id
     * @return
     */
    DjInsurance selectByPrimaryKey(Long id);

    List<DjInsurance> selectByParam(@Param("insuranceType") String insuranceType,
        @Param("start") Date start, @Param("end") Date end, @Param("offset") Integer offset,
        @Param("size") Integer size);

    long countByParam(@Param("insuranceType") String insuranceType, @Param("start") Date start,
        @Param("end") Date end);

}
